// Option.h : Declaration of the COption

#ifndef __OPTION_H_
#define __OPTION_H_

#include "resource.h"       // main symbols

/////////////////////////////////////////////////////////////////////////////
// COption
class ATL_NO_VTABLE COption : 
	public CComObjectRootEx<CComSingleThreadModel>,
	public CComCoClass<COption, &CLSID_Option>,
	public ISupportErrorInfo,
	public IConnectionPointContainerImpl<COption>,
	public IDispatchImpl<IOption, &IID_IOption, &LIBID_ACTIVCARDLib>
{
public:
	COption()
	{
	}

DECLARE_REGISTRY_RESOURCEID(IDR_OPTION)

DECLARE_PROTECT_FINAL_CONSTRUCT()

BEGIN_COM_MAP(COption)
	COM_INTERFACE_ENTRY(IOption)
	COM_INTERFACE_ENTRY(IDispatch)
	COM_INTERFACE_ENTRY(ISupportErrorInfo)
	COM_INTERFACE_ENTRY(IConnectionPointContainer)
END_COM_MAP()
BEGIN_CONNECTION_POINT_MAP(COption)
END_CONNECTION_POINT_MAP()


// ISupportsErrorInfo
	STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);

// IOption
public:
	STDMETHOD(get_AccountingPort)(/*[out, retval]*/ BYTE *pVal);
	STDMETHOD(put_AccountingPort)(/*[in]*/ BYTE newVal);
	STDMETHOD(get_AuthenticationPort)(/*[out, retval]*/ BYTE *pVal);
	STDMETHOD(put_AuthenticationPort)(/*[in]*/ BYTE newVal);
};

#endif //__OPTION_H_
